﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using System.Collections.Generic;
namespace Reader.Domain
{
    public class Tops
    {
        public List<TopRate> TopRates
        {
            get;
            set;
        }
        public List<TopRate> OrderTopRates
        {
            get
            {
                int i=0;
                foreach (TopRate t in TopRates)
                {
                    t.Order=++i;
                }
                return TopRates;
            }
        }
    }
    public class TopRate
    {

        public TopRate()
        {}
        public TopRate(string bookName,string uri)
        {
            BookName = bookName;
            Uri = uri;
        }
        public int Order { get; set; }
        public string BookName { get; set; }
        public string Uri { get; set; }
        public string LastChapterName { get; set; }
        public string LastChapterUri { get; set; }
      
        public string Catalog { get; set; }
        public string LastUpdateTime { get; set; }
        public string Author { get; set; }
        public string Style { get; set; }
        public string Tip { get; set; }
    }
}
